import request from '@/utils/request'
const prefix = '/md_sys_dict_type'

export function getDictTypeList(data) {
  return request({
    url: `${prefix}/getDictTypeList`, method: 'post', data
  })
}

export function createDictType(data) {
  return request({
    url: `${prefix}/createDictType`, method: 'post', data
  })
}

export function updateDictType(data) {
  return request({
    url: `${prefix}/updateDictType`, method: 'post', data
  })
}

export function deleteDictType(id) {
  return request({
    url: `${prefix}/deleteDictType/${id}`, method: 'delete'
  })
}

export function deleteMulityDictType(ids) {
  const data = { ids }
  return request({
    url: `${prefix}/deleteMulityDictType`, method: 'post', data
  })
}

